package cn.edu.xmu.oomall.liquidation.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;

/**
 * @author HertzLiu
 * @create_time 2021/12/16 0:23
 * @package_name cn.edu.xmu.oomall.liquidation.model.vo
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StartInfoVo {

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", timezone = "GMT+8")
    @NotNull
    private ZonedDateTime beginTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ", timezone = "GMT+8")
    @NotNull
    private ZonedDateTime endTime;
}
